package cn.com.annotation;

import java.util.Date;

/*
* @Override：检测被该注解标注的方法是否是继承自父类
* @Deprecated：该注解标注的内容，已过时
* @SuppressWarnings：压制警告
*/
@SuppressWarnings("all")
public class AnnoDemo2 {
    @Override
    public String toString() {
        return super.toString();
    }

    @Deprecated
    public void show1() {
        //有缺陷
    }

    @MyAnno(age = 12, per = Person.P1, anno2 =  @MyAnno2, strs = {})
    public void show2() {
        //替代show1方法
    }

    public void democ() {
        show1();
    }
}
